import request from '@/utils/request'

const baseURL = '/sysDictionaryGroup'

// 查询字典分组树
export function queryTreeList () {
  return request({
    url: `${baseURL}/queryTreeList`
  })
}

// 新增或更新字典分组
export function saveOrUpdateDictionaryGroup (data) {
  return request({
    url: `${baseURL}/saveOrUpdateDictionaryGroup`,
    method: 'post',
    data
  })
}

// 删除分组
export function delGroup (id) {
  return request({
    url: `${baseURL}/delete`,
    params: {
      id
    }
  })
}
